package session.stateless;

import entity.LineItem;
import entity.Product;
import entity.SaleInquiry;
import java.util.List;
import javax.ejb.Local;

@Local
public interface SaleInquiryBeanLocal {
    
    public List<Product> getProduct();
    
    public LineItem createLineItem(Product product, Integer quantity);
    
    public LineItem createLineItem(Product product, Integer quantity, Double finalPrice);
    
    public Long createSaleInquiry(Long saleLeadId,List<LineItem> lineItems);
    
    public void updateSaleInquiry(Long saleInquiryId, List<LineItem> lineItems);
    //Assume this method is called by staff's mistypo
    
    public void deleteSaleInquiry(Long saleInquiryId);
    
    public List<SaleInquiry> getSaleInquiries();
    
    public List<SaleInquiry> getSaleInquiriesBySaleLead(Long saleLeadId);
}
